package com.xbongbong.paas.domain.dao;

import com.xbongbong.paas.domain.entity.PaasFormRichTextEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface PaasFormRichTextDao {
    Long insert(PaasFormRichTextEntity entity);

    void insertBatch(List<PaasFormRichTextEntity> list);

    PaasFormRichTextEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    Integer update(PaasFormRichTextEntity entity);

    Integer updateByDataId(PaasFormRichTextEntity entity);

    List<PaasFormRichTextEntity> findEntities(@Param("param") Map<String, Object> param);

    List<Long> getIdList(@Param("param") Map<String, Object> params);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    PaasFormRichTextEntity getByDataId(PaasFormRichTextEntity entity);

    void deleteByDataId(PaasFormRichTextEntity entity);

    void updateTime(PaasFormRichTextEntity entity);

    void operateBatch(@Param("params") Map<String, Object> params);

}